   <div class="recuadro_colder">
<div class="titcol2">RANKING DE NOTICIAS</div>
        	<div id="TabbedPanels1" class="TabbedPanels">
  <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">+ Leidas</li>
    <li class="TabbedPanelsTab" tabindex="0">+ Comentadas</li>
  </ul>
  <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">
    	  <?php
        $tablale="noticias";
        $condicionle="not_publicar=1 and date_sub(curdate(),interval 10 day) <= not_fecha";
        $ordenle="order by not_visitas desc limit 0,5";
        $resle=  cons_sql($tablale, $condicionle, $ordenle);
        $i=1;
        while($regle= mysql_fetch_array($resle)):
        ?>
    	<div class="linea"><div class="numranking"><?php echo $i ?></div><a href="noticia.php?not_id=<?php echo utf8_encode($regle['not_id'])?>" class="link1"><?php echo utf8_encode($regle['not_titulo'])?></a></div>
        <?php
        $i++;
        endwhile ?></div>
    <div class="TabbedPanelsContent">
    	 <?php
        


        $sqlcom="select count(*) as total,com_nota from comentarios  where date_sub(curdate(),interval 10 day) <= com_fecha group by com_nota  order by total desc limit 0,8";
        $rescom=  ins_sql($sqlcom);
        while($regcom= mysql_fetch_array($rescom)):
        ?>
        <div class="linea"><a href="noticia.php?not_id=<?php echo $regcom['com_nota']?>" class="link1"><?php echo titulo_noticia($regcom['com_nota'])?></a></div>
       <?php endwhile ?>
    </div>
  </div>
</div>
      </div>